﻿#include "CmdSurfaceElectricFieldMapSidebarUpdateProcessData.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSurfaceElectricFieldMapSidebarUpdateProcessData::CmdSurfaceElectricFieldMapSidebarUpdateProcessData()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSurfaceElectricFieldMapSidebarUpdateProcessData::~CmdSurfaceElectricFieldMapSidebarUpdateProcessData()
    {
    }

    bool CmdSurfaceElectricFieldMapSidebarUpdateProcessData::execute()
    {
        emit IBaseSignalInstance->signal_surfaceElectricFieldMapSidebarUpdateProcessData(m_windowId, m_isLog, m_isNormalize);
        return true;
    }

    void CmdSurfaceElectricFieldMapSidebarUpdateProcessData::undo()
    {
    }

    void CmdSurfaceElectricFieldMapSidebarUpdateProcessData::redo()
    {
    }

    void CmdSurfaceElectricFieldMapSidebarUpdateProcessData::setSurfaceElectricFieldMapSidebarUpdateProcessData(int windowId, bool isLog, bool isNormalize)
    {
        m_windowId = windowId;
        m_isLog = isLog;
        m_isNormalize = isNormalize;
    }

} // namespace PostCommand
